﻿@model DSAAssignment.Models.RateProductModel
@{
    ViewBag.Title = "ProductRatings";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>ProductRatings</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Rating</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Rating)
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.ProductID)
            @Html.DropDownListFor(model => model.Rating,Model.RatingList)
        </div>

        <p>
            <input type="submit" value="Rate" id="BtnRate"/>
        </p>
    </fieldset>
}

